package br.usp.pcs.basys2.engine;

import java.util.ArrayList;
import java.util.List;

import br.usp.pcs.basys2.event.EventInfo;

public class OutputBlock {
	
	private EventInfo cause;
	
	private List<String> effects = new ArrayList<String>();

	public OutputBlock(EventInfo cause) {
		super();
		this.cause = cause;
	}

	public boolean add(String effect) {
		return effects.add(effect);
	}

	public EventInfo getCause() {
		return cause;
	}

	public List<String> getEffects() {
		return effects;
	}
	
	@Override
	public String toString() {
		return "\n Cause "+ cause + "\n Effect " + effects.toString();
	}
}
